
public class Date{
    public int year;
    public int month;
    public int day;

    public void setDay(int year,int month,int day){
        this.year=year;
        this.month=month;
        this.day=day;
    }

    public void printDate(){
        System.out.println(year+"-"+month+"-"+day);
    }

    public static void main(String[] args){

        Date d1=new Date();
        Date d2=new Date();
        Date d3=new Date();


        d1.setDay(2025,4,25);
        d2.setDay(2024,3,24);
        d3.setDay(2023,2,23);


        d1.printDate();
        d2.printDate();
        d3.printDate();
    }
}
